package com.bjesc_b2c.app.appraiset.adapter;

        import android.content.Context;

import com.bjesc_b2c.app.appraiset.R;

import java.util.List;

import app.pinggushi.bjesc.com.baserecyclerview.adapter.CommonAdapter;
import app.pinggushi.bjesc.com.baserecyclerview.adapter.base.ViewHolder;
import master_bean.CustomerDetailsBean;

/**
 * Created by yidong on 2017/5/25.
 */

public class TrajectoryListAdapter extends CommonAdapter<CustomerDetailsBean.FollowHistoryBean> {
    public TrajectoryListAdapter(Context context, int layoutId, List<CustomerDetailsBean.FollowHistoryBean> datas) {
        super(context, layoutId, datas);
    }

    @Override
    protected void convertView(ViewHolder holder, CustomerDetailsBean.FollowHistoryBean followHistoryBean, int position) {
//        if (position == 0) {
//            // 第一行头的竖线不显示
//            holder.setVisible(R.id.tvTopLine,false);
//            holder.setBackgroundRes(R.id.tvDot,R.drawable.timelline_dot_first);
//        } else {
//            holder.setVisible(R.id.tvTopLine,true);
//        }
//        添加的记录类型 1 跟进 2博精成交 3战败 4未见面 5见面未成交 6转单 7添加需求车源

        holder.setText(R.id.tvAcceptName,followHistoryBean.getOperation_nickname());
        holder.setText(R.id.tvAcceptStation,followHistoryBean.getContent()+"   客户状态："+followHistoryBean.getType());

        holder.setText(R.id.tvAcceptTime, followHistoryBean.getAdd_time());
    }
}
